package top.zk123.chain.mapper;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import top.zk123.chain.bean.Verify;

import java.util.List;

public interface VerifyMapper extends JpaRepository<Verify, String> {
    @Query(value = "select * from verify", nativeQuery = true)
    List<Verify> findVerify();

    @Query(value = "select * from verify where uid = :UId", nativeQuery = true)
    Verify findByUid(String UId);
}
